
if (window.opener != null && (document.referrer == "" || document.referrer.indexOf("jsp/userManager/login.jsp") > 0) && navigator.appVersion.indexOf("MSIE 8.0") > 0) {
	var myOpener = window.opener;
	window.opener = null;
	window.open("", "_parent", "");
	myOpener.opener = null;
	myOpener.open("", "_parent", "");
	myOpener.close();
}
dhtmlxAjax = {get:function (e, f) {
	var d = new dtmlXMLLoaderObject(true);
	d.async = (arguments.length < 3);
	d.waitCall = f;
	d.loadXML(e);
	return d;
}, post:function (f, h, g) {
	var e = new dtmlXMLLoaderObject(true);
	e.async = (arguments.length < 4);
	e.waitCall = g;
	e.loadXML(f, true, h);
	return e;
}, getSync:function (b) {
	return this.get(b, null, true);
}, postSync:function (h, n,jsonPreFlg) {
//alert("postSync  jsonPreFlg="+jsonPreFlg +"  form="+n);
//console.log("jsonPreFlg="+jsonPreFlg);
	var j = ajaxForm(n,jsonPreFlg);
	//alert(j);
	if (typeof (j) != "undefined" && j != "") {
		j += "&ajax=true";
	} else {
		j = "ajax=true";
	}
	var i = this.post(h, j, null, true);
	var k = i.xmlDoc.responseText;
	if (k == "overdue") {
		toLogin();
	}
	if ("MypmPermissionChg" == k) {
		if (typeof hintMsg != "undefined") {
			hintMsg("\u60a8\u7684\u5f53\u524d\u64cd\u4f5c\u6743\u9650\u5df1\u88ab\u6536\u56de");
			for (var o = 1; o < 10000; o++) {
			}
			reLoadMenu();
			return "";
		} else {
			try {
				showMessage(false, "\u64cd\u4f5c\u6743\u9650", "\u60a8\u7684\u5f53\u524d\u64cd\u4f5c\u6743\u9650\u5df1\u88ab\u6536\u56de");
				for (var o = 1; o < 10000; o++) {
				}
				reLoadMenu();
				return "";
			}
			catch (m) {
				alert("\u60a8\u7684\u5f53\u524d\u64cd\u4f5c\u6743\u9650\u5df1\u88ab\u6536\u56de");
				reLoadMenu();
				return "";
			}
		}
	} else {
		if ("deny" == k) {
			if (typeof hintMsg != "undefined") {
				hintMsg("\u60a8\u6ca1\u6709\u5f53\u524d\u64cd\u4f5c\u6743\u9650");
				for (var o = 1; o < 10000; o++) {
				}
				return "";
			} else {
				try {
					showMessage(false, "\u64cd\u4f5c\u6743\u9650", "\u60a8\u6ca1\u6709\u5f53\u524d\u64cd\u4f5c\u6743\u9650");
					for (var o = 1; o < 10000; o++) {
					}
					return "";
				}
				catch (m) {
					alert("\u60a8\u6ca1\u6709\u5f53\u524d\u64cd\u4f5c\u6743\u9650");
					return "";
				}
			}
		}
	}
	return i;
}};
function postSub(g, h) {
	var result = dhtmlxAjax.postSync(g, h);
	if (result == "") {return;}
	var i = result.xmlDoc.responseText;
	if (i == "overdue") {
		toLogin();
	}
	if ("MypmPermissionChg" == i) {
		if (typeof hintMsg != "undefined") {
			hintMsg("\u60a8\u7684\u5f53\u524d\u64cd\u4f5c\u6743\u9650\u5df1\u88ab\u6536\u56de");
			for (var f = 1; f < 10000; f++) {
			}
			reLoadMenu();
			return "";
		} else {
			try {
				showMessage(false, "\u64cd\u4f5c\u6743\u9650", "\u60a8\u7684\u5f53\u524d\u64cd\u4f5c\u6743\u9650\u5df1\u88ab\u6536\u56de");
				for (var f = 1; f < 10000; f++) {
				}
				reLoadMenu();
				return "";
			}
			catch (j) {
				alert("\u60a8\u7684\u5f53\u524d\u64cd\u4f5c\u6743\u9650\u5df1\u88ab\u6536\u56de");
				reLoadMenu();
				return "";
			}
		}
	} else {
		if ("deny" == i) {
			if (typeof hintMsg != "undefined") {
				hintMsg("\u60a8\u6ca1\u6709\u5f53\u524d\u64cd\u4f5c\u6743\u9650");
				for (var f = 1; f < 10000; f++) {
				}
				return "";
			} else {
				try {
					showMessage(false, "\u64cd\u4f5c\u6743\u9650", "\u60a8\u6ca1\u6709\u5f53\u524d\u64cd\u4f5c\u6743\u9650");
					for (var f = 1; f < 10000; f++) {
					}
					return "";
				}
				catch (j) {
					alert("\u60a8\u6ca1\u6709\u5f53\u524d\u64cd\u4f5c\u6743\u9650");
					return "";
				}
			}
		}
	}
	return i;
}
function jsonProtect(e, f) {
	var d = replaceAll(e, "=", "\uff1d");
	if (typeof (f) == "undefined") {
		d = replaceAll(d, ",", "\uff0c");
	}
	d = replaceAll(d, "$", "\uff04");
	d = replaceAll(d, "^", "\uff3e");
	d = replaceAll(d, "'", "\uff07");
	d = replaceAll(d, "[", "\uff3b");
	d = replaceAll(d, "]", "\uff3d");
	d = replaceAll(d, "{", "\uff5b");
	d = replaceAll(d, "}", "\uff5d");
	d = replaceAll(d, "<", "\uff1c");
	d = replaceAll(d, ">", "\uff1e");
	d = replaceAll(d, "\"", "\u201d");
	return d;
}
function recovJsonKeyWord(e, d) {
	var f = replaceAll(e, "\uff1d", "=");
	if (typeof (d) == "undefined") {
		f = replaceAll(f, "\uff0c", ",");
	}
	f = replaceAll(f, "\uff04", "$");
	f = replaceAll(f, "\uff3e", "^");
	f = replaceAll(f, "\uff07", "'");
	f = replaceAll(f, "\uff3b", "[");
	f = replaceAll(f, "\uff3d", "]");
	f = replaceAll(f, "\uff5b", "{");
	f = replaceAll(f, "\uff5d", "}");
	f = replaceAll(f, "\uff1c", "<");
	f = replaceAll(f, "\uff1e", ">");
	f = replaceAll(f, "\u201d", "\"");
	return f;
}
function replaceAll(m, i, k) {
	if (typeof (m) == "undefined" || m == "") {
		return "";
	}
	var h = "";
	var j = 0, g = m.indexOf(i);
	while (g >= 0) {
		h += m.substring(j, g) + k;
		j = g + i.length;
		g = m.indexOf(i, j);
	}
	h += m.substring(j, m.length);
	return h;
}
function ajaxForm(m,jsonPreFlg) {
//alert("formdata jsonPreFlg="+jsonPreFlg   +" form="+m);
	if (m == "") {
		return "";
	}
	
	//alert("formdata jsonPreFlg="+jsonPreFlg);
	var r = document.getElementById(m);
	var s = r.elements;
	var o;
	var n;
	var q = "";
	for (n = 0; n < s.length; ++n) {
		var o = s[n];
		if (o.type == "text" || o.type == "textarea" || o.type == "hidden") {
			if(typeof (jsonPreFlg) =="undefined"){
				//alert("jsonProtect");
				o.value = jsonProtect(o.value);
			}
			q += encodeURIComponent(o.name) + "=" + encodeURIComponent(o.value) + "&";
		} else {
			if (o.type == "select-one" || o.type == "select-multiple") {
				var i = o.options, p, j;
				for (p = 0; p < i.length; ++p) {
					j = i[p];
					if (j.selected) {
						q += encodeURIComponent(o.name) + "=" + encodeURIComponent(o.value) + "&";
					}
				}
			} else {
				if (o.type == "checkbox" || o.type == "radio") {
					if (o.checked) {
						q += encodeURIComponent(o.name) + "=" + encodeURIComponent(o.value) + "&";
					}
				} else {
					if (o.type != "file") {
						if (o.type != "password") {
							o.value = jsonProtect(o.value);
						}
						q += encodeURIComponent(o.name) + "=" + encodeURIComponent(o.value) + "&";
					} else {
					}
				}
			}
		}
	}
	if (q.lastIndexOf("&") == q.length - 1) {
		q = q.substr(0, q.lastIndexOf("&"));
	}
	return q;
}
function dtmlXMLLoaderObject(e, g, h, f) {
	this.xmlDoc = "";
	if (typeof (h) != "undefined") {
		this.async = h;
	} else {
		this.async = true;
	}
	this.onloadAction = e || null;
	this.mainObject = g || null;
	this.waitCall = null;
	this.rSeed = f || false;
	return this;
}
dtmlXMLLoaderObject.prototype.waitLoadFunction = function (c) {
	var d = true;
	this.check = function () {
		if ((c) && (c.onloadAction != null)) {
			if ((!c.xmlDoc.readyState) || (c.xmlDoc.readyState == 4)) {
				if (!d) {
					return;
				}
				d = false;
				if (typeof c.onloadAction == "function") {
					c.onloadAction(c.mainObject, null, null, null, c);
				}
				if (c.waitCall) {
					c.waitCall.call(this, c);
					c.waitCall = null;
				}
			}
		}
	};
	return this.check;
};
dtmlXMLLoaderObject.prototype.getXMLTopNode = function (j, g) {
	if (this.xmlDoc.responseXML) {
		var f = this.xmlDoc.responseXML.getElementsByTagName(j);
		if (f.length == 0 && j.indexOf(":") != -1) {
			var f = this.xmlDoc.responseXML.getElementsByTagName((j.split(":"))[1]);
		}
		var h = f[0];
	} else {
		var h = this.xmlDoc.documentElement;
	}
	if (h) {
		this._retry = false;
		return h;
	}
	if ((_isIE) && (!this._retry)) {
		var i = this.xmlDoc.responseText;
		var g = this.xmlDoc;
		this._retry = true;
		this.xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
		this.xmlDoc.async = false;
		this.xmlDoc.loadXML(i);
		return this.getXMLTopNode(j, g);
	}
	dhtmlxError.throwError("LoadXML", "Incorrect XML", [(g || this.xmlDoc), this.mainObject]);
	return document.createElement("DIV");
};
dtmlXMLLoaderObject.prototype.loadXMLString = function (d) {
	try {
		var f = new DOMParser();
		this.xmlDoc = f.parseFromString(d, "text/xml");
	}
	catch (e) {
		this.xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
		this.xmlDoc.async = this.async;
		this.xmlDoc.loadXML(d);
	}
	this.onloadAction(this.mainObject, null, null, null, this);
	if (this.waitCall) {
		this.waitCall();
		this.waitCall = null;
	}
};
dtmlXMLLoaderObject.prototype.loadXML = function (h, e, f, g) {
	if (this.rSeed) {
		h += ((h.indexOf("?") != -1) ? "&" : "?") + "a_dhx_rSeed=" + (new Date()).valueOf();
	}
	this.filePath = h;
	if ((!_isIE) && (window.XMLHttpRequest)) {
		this.xmlDoc = new XMLHttpRequest();
	} else {
		if (document.implementation && document.implementation.createDocument) {
			this.xmlDoc = document.implementation.createDocument("", "", null);
			this.xmlDoc.onload = new this.waitLoadFunction(this);
			this.xmlDoc.load(h);
			return;
		} else {
			this.xmlDoc = new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	if (this.async) {
		this.xmlDoc.onreadystatechange = new this.waitLoadFunction(this);
	}
	this.xmlDoc.open(e ? "POST" : "GET", h, this.async);
	if (g) {
		this.xmlDoc.setRequestHeader("User-Agent", "dhtmlxRPC v0.1 (" + navigator.userAgent + ")");
		this.xmlDoc.setRequestHeader("Content-type", "text/xml");
	} else {
		if (e) {
			this.xmlDoc.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		}
	}
	this.xmlDoc.setRequestHeader("X-Requested-With", "XMLHttpRequest");
	this.xmlDoc.send(null || f);
	if (!this.async) {
		(new this.waitLoadFunction(this))();
	}
};
dtmlXMLLoaderObject.prototype.destructor = function () {
	this.onloadAction = null;
	this.mainObject = null;
	this.xmlDoc = null;
	return null;
};
dtmlXMLLoaderObject.prototype.xmlNodeToJSON = function (g) {
	var h = {};
	for (var e = 0; e < g.attributes.length; e++) {
		h[g.attributes[e].name] = g.attributes[e].value;
	}
	h._tagvalue = g.firstChild ? g.firstChild.nodeValue : "";
	for (var e = 0; e < g.childNodes.length; e++) {
		var f = g.childNodes[e].tagName;
		if (f) {
			if (!h[f]) {
				h[f] = [];
			}
			h[f].push(this.xmlNodeToJSON(g.childNodes[e]));
		}
	}
	return h;
};
function callerFunction(d, c) {
	this.handler = function (a) {
		if (!a) {
			a = window.event;
		}
		d(a, c);
		return true;
	};
	return this.handler;
}
function getAbsoluteLeft(d) {
	var f = d.offsetLeft;
	var e = d.offsetParent;
	while (e != null) {
		f += e.offsetLeft;
		e = e.offsetParent;
	}
	return f;
}
function getAbsoluteTop(f) {
	var d = f.offsetTop;
	var e = f.offsetParent;
	while (e != null) {
		d += e.offsetTop;
		e = e.offsetParent;
	}
	return d;
}
function convertStringToBoolean(b) {
	if (typeof (b) == "string") {
		b = b.toLowerCase();
	}
	switch (b) {
	  case "1":
	  case "true":
	  case "yes":
	  case "y":
	  case 1:
	  case true:
		return true;
		break;
	  default:
		return false;
	}
}
function getUrlSymbol(b) {
	if (b.indexOf("?") != -1) {
		return "&";
	} else {
		return "?";
	}
}
function dhtmlDragAndDropObject() {
	if (window.dhtmlDragAndDrop) {
		return window.dhtmlDragAndDrop;
	}
	this.lastLanding = 0;
	this.dragNode = 0;
	this.dragStartNode = 0;
	this.dragStartObject = 0;
	this.tempDOMU = null;
	this.tempDOMM = null;
	this.waitDrag = 0;
	window.dhtmlDragAndDrop = this;
	return this;
}
dhtmlDragAndDropObject.prototype.removeDraggableItem = function (b) {
	b.onmousedown = null;
	b.dragStarter = null;
	b.dragLanding = null;
};
dhtmlDragAndDropObject.prototype.addDraggableItem = function (d, c) {
	d.onmousedown = this.preCreateDragCopy;
	d.dragStarter = c;
	this.addDragLanding(d, c);
};
dhtmlDragAndDropObject.prototype.addDragLanding = function (d, c) {
	d.dragLanding = c;
};
dhtmlDragAndDropObject.prototype.preCreateDragCopy = function (b) {
	if (b && (b || event).button == 2) {
		return;
	}
	if (window.dhtmlDragAndDrop.waitDrag) {
		window.dhtmlDragAndDrop.waitDrag = 0;
		document.body.onmouseup = window.dhtmlDragAndDrop.tempDOMU;
		document.body.onmousemove = window.dhtmlDragAndDrop.tempDOMM;
		return false;
	}
	window.dhtmlDragAndDrop.waitDrag = 1;
	window.dhtmlDragAndDrop.tempDOMU = document.body.onmouseup;
	window.dhtmlDragAndDrop.tempDOMM = document.body.onmousemove;
	window.dhtmlDragAndDrop.dragStartNode = this;
	window.dhtmlDragAndDrop.dragStartObject = this.dragStarter;
	document.body.onmouseup = window.dhtmlDragAndDrop.preCreateDragCopy;
	document.body.onmousemove = window.dhtmlDragAndDrop.callDrag;
	if ((b) && (b.preventDefault)) {
		b.preventDefault();
		return false;
	}
	return false;
};
dhtmlDragAndDropObject.prototype.callDrag = function (j) {
	if (!j) {
		j = window.event;
	}
	dragger = window.dhtmlDragAndDrop;
	if ((j.button == 0) && (_isIE)) {
		return dragger.stopDrag();
	}
	if (!dragger.dragNode && dragger.waitDrag) {
		dragger.dragNode = dragger.dragStartObject._createDragNode(dragger.dragStartNode, j);
		if (!dragger.dragNode) {
			return dragger.stopDrag();
		}
		dragger.dragNode.onselectstart = function () {
			return false;
		};
		dragger.gldragNode = dragger.dragNode;
		document.body.appendChild(dragger.dragNode);
		document.body.onmouseup = dragger.stopDrag;
		dragger.waitDrag = 0;
		dragger.dragNode.pWindow = window;
		dragger.initFrameRoute();
	}
	if (dragger.dragNode.parentNode != window.document.body) {
		var g = dragger.gldragNode;
		if (dragger.gldragNode.old) {
			g = dragger.gldragNode.old;
		}
		g.parentNode.removeChild(g);
		var e = dragger.dragNode.pWindow;
		if (_isIE) {
			var h = document.createElement("Div");
			h.innerHTML = dragger.dragNode.outerHTML;
			dragger.dragNode = h.childNodes[0];
		} else {
			dragger.dragNode = dragger.dragNode.cloneNode(true);
		}
		dragger.dragNode.pWindow = window;
		dragger.gldragNode.old = dragger.dragNode;
		document.body.appendChild(dragger.dragNode);
		e.dhtmlDragAndDrop.dragNode = dragger.dragNode;
	}
	dragger.dragNode.style.left = j.clientX + 15 + (dragger.fx ? dragger.fx * (-1) : 0) + (document.body.scrollLeft || document.documentElement.scrollLeft) + "px";
	dragger.dragNode.style.top = j.clientY + 3 + (dragger.fy ? dragger.fy * (-1) : 0) + (document.body.scrollTop || document.documentElement.scrollTop) + "px";
	if (!j.srcElement) {
		var i = j.target;
	} else {
		i = j.srcElement;
	}
	dragger.checkLanding(i, j);
};
dhtmlDragAndDropObject.prototype.calculateFramePosition = function (h) {
	if (window.name) {
		var j = parent.frames[window.name].frameElement.offsetParent;
		var i = 0;
		var f = 0;
		while (j) {
			i += j.offsetLeft;
			f += j.offsetTop;
			j = j.offsetParent;
		}
		if ((parent.dhtmlDragAndDrop)) {
			var g = parent.dhtmlDragAndDrop.calculateFramePosition(1);
			i += g.split("_")[0] * 1;
			f += g.split("_")[1] * 1;
		}
		if (h) {
			return i + "_" + f;
		} else {
			this.fx = i;
		}
		this.fy = f;
	}
	return "0_0";
};
dhtmlDragAndDropObject.prototype.checkLanding = function (c, d) {
	if ((c) && (c.dragLanding)) {
		if (this.lastLanding) {
			this.lastLanding.dragLanding._dragOut(this.lastLanding);
		}
		this.lastLanding = c;
		this.lastLanding = this.lastLanding.dragLanding._dragIn(this.lastLanding, this.dragStartNode, d.clientX, d.clientY, d);
		this.lastLanding_scr = (_isIE ? d.srcElement : d.target);
	} else {
		if ((c) && (c.tagName != "BODY")) {
			this.checkLanding(c.parentNode, d);
		} else {
			if (this.lastLanding) {
				this.lastLanding.dragLanding._dragOut(this.lastLanding, d.clientX, d.clientY, d);
			}
			this.lastLanding = 0;
			if (this._onNotFound) {
				this._onNotFound();
			}
		}
	}
};
dhtmlDragAndDropObject.prototype.stopDrag = function (d, f) {
	dragger = window.dhtmlDragAndDrop;
	if (!f) {
		dragger.stopFrameRoute();
		var e = dragger.lastLanding;
		dragger.lastLanding = null;
		if (e) {
			e.dragLanding._drag(dragger.dragStartNode, dragger.dragStartObject, e, (_isIE ? event.srcElement : d.target));
		}
	}
	dragger.lastLanding = null;
	if ((dragger.dragNode) && (dragger.dragNode.parentNode == document.body)) {
		dragger.dragNode.parentNode.removeChild(dragger.dragNode);
	}
	dragger.dragNode = 0;
	dragger.gldragNode = 0;
	dragger.fx = 0;
	dragger.fy = 0;
	dragger.dragStartNode = 0;
	dragger.dragStartObject = 0;
	document.body.onmouseup = dragger.tempDOMU;
	document.body.onmousemove = dragger.tempDOMM;
	dragger.tempDOMU = null;
	dragger.tempDOMM = null;
	dragger.waitDrag = 0;
};
dhtmlDragAndDropObject.prototype.stopFrameRoute = function (c) {
	if (c) {
		window.dhtmlDragAndDrop.stopDrag(1, 1);
	}
	for (var d = 0; d < window.frames.length; d++) {
		if ((window.frames[d] != c) && (window.frames[d].dhtmlDragAndDrop)) {
			window.frames[d].dhtmlDragAndDrop.stopFrameRoute(window);
		}
	}
	if ((parent.dhtmlDragAndDrop) && (parent != window) && (parent != c)) {
		parent.dhtmlDragAndDrop.stopFrameRoute(window);
	}
};
dhtmlDragAndDropObject.prototype.initFrameRoute = function (d, f) {
	if (d) {
		window.dhtmlDragAndDrop.preCreateDragCopy();
		window.dhtmlDragAndDrop.dragStartNode = d.dhtmlDragAndDrop.dragStartNode;
		window.dhtmlDragAndDrop.dragStartObject = d.dhtmlDragAndDrop.dragStartObject;
		window.dhtmlDragAndDrop.dragNode = d.dhtmlDragAndDrop.dragNode;
		window.dhtmlDragAndDrop.gldragNode = d.dhtmlDragAndDrop.dragNode;
		window.document.body.onmouseup = window.dhtmlDragAndDrop.stopDrag;
		window.waitDrag = 0;
		if (((!_isIE) && (f)) && ((!_isFF) || (_FFrv < 1.8))) {
			window.dhtmlDragAndDrop.calculateFramePosition();
		}
	}
	if ((parent.dhtmlDragAndDrop) && (parent != window) && (parent != d)) {
		parent.dhtmlDragAndDrop.initFrameRoute(window);
	}
	for (var e = 0; e < window.frames.length; e++) {
		if ((window.frames[e] != d) && (window.frames[e].dhtmlDragAndDrop)) {
			window.frames[e].dhtmlDragAndDrop.initFrameRoute(window, ((!d || f) ? 1 : 0));
		}
	}
};
var _isFF = false;
var _isIE = false;
var _isOpera = false;
var _isKHTML = false;
var _isMacOS = false;
var _isChrome = false;
if (navigator.userAgent.indexOf("Macintosh") != -1) {
	_isMacOS = true;
}
if ((navigator.userAgent.indexOf("Safari") != -1) || (navigator.userAgent.indexOf("Konqueror") != -1)) {
	var _KHTMLrv = parseFloat(navigator.userAgent.substr(navigator.userAgent.indexOf("Safari") + 7, 5));
	if (_KHTMLrv > 525) {
		_isFF = true;
		var _FFrv = 1.9;
	} else {
		_isKHTML = true;
	}
} else {
	if (navigator.userAgent.indexOf("Opera") != -1) {
		_isOpera = true;
		_OperaRv = parseFloat(navigator.userAgent.substr(navigator.userAgent.indexOf("Opera") + 6, 3));
	} else {
		if (navigator.appName.indexOf("Microsoft") != -1) {
			_isIE = true;
			if (navigator.appVersion.indexOf("MSIE 8.0") != -1 && document.compatMode != "BackCompat") {
				_isIE = 8;
			}
		} else {
			_isFF = true;
			var _FFrv = parseFloat(navigator.userAgent.split("rv:")[1]);
		}
	}
}
dtmlXMLLoaderObject.prototype.doXPath = function (q, o, p, j) {
	if ((_isKHTML)) {
		return this.doXPathOpera(q, o);
	}
	if (_isIE) {
		if (!o) {
			if (!this.xmlDoc.nodeName) {
				o = this.xmlDoc.responseXML;
			} else {
				o = this.xmlDoc;
			}
		}
		if (!o) {
			dhtmlxError.throwError("LoadXML", "Incorrect XML", [(o || this.xmlDoc), this.mainObject]);
		}
		if (p != null) {
			o.setProperty("SelectionNamespaces", "xmlns:xsl='" + p + "'");
		}
		if (j == "single") {
			return o.selectSingleNode(q);
		} else {
			return o.selectNodes(q) || new Array(0);
		}
	} else {
		var s = o;
		if (!o) {
			if (!this.xmlDoc.nodeName) {
				o = this.xmlDoc.responseXML;
			} else {
				o = this.xmlDoc;
			}
		}
		if (!o) {
			dhtmlxError.throwError("LoadXML", "Incorrect XML", [(o || this.xmlDoc), this.mainObject]);
		}
		if (o.nodeName.indexOf("document") != -1) {
			s = o;
		} else {
			s = o;
			o = o.ownerDocument;
		}
		var m = XPathResult.ANY_TYPE;
		if (j == "single") {
			m = XPathResult.FIRST_ORDERED_NODE_TYPE;
		}
		var n = new Array();
		var r = o.evaluate(q, s, function (a) {
			return p;
		}, m, null);
		if (m == XPathResult.FIRST_ORDERED_NODE_TYPE) {
			return r.singleNodeValue;
		}
		var k = r.iterateNext();
		while (k) {
			n[n.length] = k;
			k = r.iterateNext();
		}
		return n;
	}
};
function _dhtmlxError(d, e, f) {
	if (!this.catches) {
		this.catches = new Array();
	}
	return this;
}
_dhtmlxError.prototype.catchError = function (c, d) {
	this.catches[c] = d;
};
_dhtmlxError.prototype.throwError = function (d, e, f) {
	if (this.catches[d]) {
		return this.catches[d](d, e, f);
	}
	if (this.catches.ALL) {
		return this.catches.ALL(d, e, f);
	}
	alert("Error type: " + arguments[0] + "\nDescription: " + arguments[1]);
	return null;
};
window.dhtmlxError = new _dhtmlxError();
dtmlXMLLoaderObject.prototype.doXPathOpera = function (j, g) {
	var h = j.replace(/[\/]+/gi, "/").split("/");
	var i = null;
	var f = 1;
	if (!h.length) {
		return [];
	}
	if (h[0] == ".") {
		i = [g];
	} else {
		if (h[0] == "") {
			i = (this.xmlDoc.responseXML || this.xmlDoc).getElementsByTagName(h[f].replace(/\[[^\]]*\]/g, ""));
			f++;
		} else {
			return [];
		}
	}
	for (f; f < h.length; f++) {
		i = this._getAllNamedChilds(i, h[f]);
	}
	if (h[f - 1].indexOf("[") != -1) {
		i = this._filterXPath(i, h[f - 1]);
	}
	return i;
};
dtmlXMLLoaderObject.prototype._filterXPath = function (c, h) {
	var a = new Array();
	var h = h.replace(/[^\[]*\[\@/g, "").replace(/[\[\]\@]*/g, "");
	for (var b = 0; b < c.length; b++) {
		if (c[b].getAttribute(h)) {
			a[a.length] = c[b];
		}
	}
	return a;
};
dtmlXMLLoaderObject.prototype._getAllNamedChilds = function (i, j) {
	var a = new Array();
	if (_isKHTML) {
		j = j.toUpperCase();
	}
	for (var b = 0; b < i.length; b++) {
		for (var c = 0; c < i[b].childNodes.length; c++) {
			if (_isKHTML) {
				if (i[b].childNodes[c].tagName && i[b].childNodes[c].tagName.toUpperCase() == j) {
					a[a.length] = i[b].childNodes[c];
				}
			} else {
				if (i[b].childNodes[c].tagName == j) {
					a[a.length] = i[b].childNodes[c];
				}
			}
		}
	}
	return a;
};
function dhtmlXHeir(b, c) {
	for (var a in c) {
		if (typeof (c[a]) == "function") {
			b[a] = c[a];
		}
	}
	return b;
}
function dhtmlxEvent(d, f, e) {
	if (d.addEventListener) {
		d.addEventListener(f, e, false);
	} else {
		if (d.attachEvent) {
			d.attachEvent("on" + f, e);
		}
	}
}
dtmlXMLLoaderObject.prototype.xslDoc = null;
dtmlXMLLoaderObject.prototype.setXSLParamValue = function (e, h, g) {
	if (!g) {
		g = this.xslDoc;
	}
	if (g.responseXML) {
		g = g.responseXML;
	}
	var f = this.doXPath("/xsl:stylesheet/xsl:variable[@name='" + e + "']", g, "http://www.w3.org/1999/XSL/Transform", "single");
	if (f != null) {
		f.firstChild.nodeValue = h;
	}
};
dtmlXMLLoaderObject.prototype.doXSLTransToObject = function (g, e) {
	if (!g) {
		g = this.xslDoc;
	}
	if (g.responseXML) {
		g = g.responseXML;
	}
	if (!e) {
		e = this.xmlDoc;
	}
	if (e.responseXML) {
		e = e.responseXML;
	}
	if (!_isIE) {
		if (!this.XSLProcessor) {
			this.XSLProcessor = new XSLTProcessor();
			this.XSLProcessor.importStylesheet(g);
		}
		var f = this.XSLProcessor.transformToDocument(e);
	} else {
		var f = new ActiveXObject("Msxml2.DOMDocument.3.0");
		try {
			e.transformNodeToObject(g, f);
		}
		catch (h) {
			f = e.transformNode(g);
		}
	}
	return f;
};
dtmlXMLLoaderObject.prototype.doXSLTransToString = function (f, d) {
	var e = this.doXSLTransToObject(f, d);
	if (typeof (e) == "string") {
		return e;
	}
	return this.doSerialization(e);
};
dtmlXMLLoaderObject.prototype.doSerialization = function (c) {
	if (!c) {
		c = this.xmlDoc;
	}
	if (c.responseXML) {
		c = c.responseXML;
	}
	if (!_isIE) {
		var d = new XMLSerializer();
		return d.serializeToString(c);
	} else {
		return c.xml;
	}
};
dhtmlxEventable = function (obj) {
	obj.dhx_SeverCatcherPath = "";
	obj.attachEvent = function (name, catcher, callObj) {
		name = "ev_" + name.toLowerCase();
		if (!this[name]) {
			this[name] = new this.eventCatcher(callObj || this);
		}
		return (name + ":" + this[name].addEvent(catcher));
	};
	obj.callEvent = function (name, arg0) {
		name = "ev_" + name.toLowerCase();
		if (this[name]) {
			return this[name].apply(this, arg0);
		}
		return true;
	};
	obj.checkEvent = function (name) {
		return (!!this["ev_" + name.toLowerCase()]);
	};
	obj.eventCatcher = function (obj) {
		var dhx_catch = [];
		var z = function () {
			var res = true;
			for (var i = 0; i < dhx_catch.length; i++) {
				if (dhx_catch[i] != null) {
					var zr = dhx_catch[i].apply(obj, arguments);
					res = res && zr;
				}
			}
			return res;
		};
		z.addEvent = function (ev) {
			if (typeof (ev) != "function") {
				ev = eval(ev);
			}
			if (ev) {
				return dhx_catch.push(ev) - 1;
			}
			return false;
		};
		z.removeEvent = function (id) {
			dhx_catch[id] = null;
		};
		return z;
	};
	obj.detachEvent = function (id) {
		if (id != false) {
			var list = id.split(":");
			this[list[0]].removeEvent(list[1]);
		}
	};
};
function controlLength(e, g, h) {
	if (g == "null" || g == "") {
		$(e).innerHTML = "&nbsp;";
		return;
	}
	if (g.length <= h) {
		$(e).innerHTML = g;
		return;
	}
	var f = g;
	g = g.substr(0, h);
	$(e).innerHTML = g + "...";
	$(e).title = f;
}
function getHrefValue(j, i, f) {
	var g = j.cells(i, f).getValue();
	if (g.indexOf("</a>") == -1 && g.indexOf("</A>") == -1) {
		return g;
	}
	var h = g.substring(g.indexOf(">") + 1, g.lastIndexOf("<"));
	return h;
}
function getHrefValueSimple(d) {
	if (d.indexOf("</a>") == -1 && d.indexOf("</A>") == -1) {
		return d;
	}
	var c = d.substring(d.indexOf(">") + 1, d.lastIndexOf("<"));
	return c;
}
function getContextPath() {
	var b = document.location.pathname.substr(1);
	b = "/" + b.substr(0, b.indexOf("/"));
	return b;
}
var conextPath = getContextPath();
var upPath = conextPath + "/mypmUserFiles/";
var currUrl = "";
function reLoadMenu() {
	try {
		if (parent.parent != null) {
			if (parent.parent.parent != null) {
				if (parent.parent.parent.parent != null) {
					if (parent.parent.parent.parent.parent != null) {
						parent.parent.parent.parent.parent.reLoadMyMenu();
						return "";
					} else {
						parent.parent.parent.parent.reLoadMyMenu();
						return "";
					}
				} else {
					parent.parent.parent.reLoadMyMenu();
					return "";
				}
			} else {
				parent.parent.reLoadMyMenu();
				return "";
			}
		}
		if (parent != null) {
			parent.reLoadMyMenu();
		}
	}
	catch (b) {
	}
}
function toLogin() {
	if (parent.parent != null) {
		if (parent.parent.parent != null) {
			if (parent.parent.parent.parent != null) {
				if (parent.parent.parent.parent.parent != null) {
					parent.parent.parent.parent.parent.location = conextPath + "/jsp/userManager/login.jsp";
					return;
				} else {
					parent.parent.parent.parent.location = conextPath + "/jsp/userManager/login.jsp";
					return;
				}
			} else {
				parent.parent.parent.location = conextPath + "/jsp/userManager/login.jsp";
				return;
			}
		} else {
			parent.parent.location = conextPath + "/jsp/userManager/login.jsp";
			return;
		}
	}
	parent.location = conextPath + "/jsp/userManager/login.jsp";
	return;
}
var impJsRec = new Object();
function importJs(url) {
	if (url.indexOf("../") == 0) {
		url = conextPath + url.substring(2);
	} else {
		if (url.indexOf("/") != 0) {
			url = "/" + conextPath + url;
		} else {
			if (url.indexOf(conextPath) != 0) {
				url = conextPath + url;
			}
		}
	}
	if (typeof impJsRec[url] != "undefined") {
		return;
	}
	var ajaxResut = dhtmlxAjax.getSync(url).xmlDoc.responseText;
	if (ajaxResut == "overdue") {
		toLogin();
	}
	if (window.execScript) {
		try {
			window.execScript(ajaxResut);
			impJsRec[url] = true;
		}
		catch (err) {
			return false;
		}
		return true;
	} else {
		eval.call(window, ajaxResut);
		impJsRec[url] = true;
		return true;
	}
	return false;
}
var impCssRec = new Object();
function loadCSS(c) {
	if (c.indexOf("../") == 0) {
		c = conextPath + c.substring(2);
	} else {
		if (c.indexOf("/") != 0) {
			c = "/" + conextPath + c;
		} else {
			if (c.indexOf(conextPath) != 0) {
				c = conextPath + c;
			}
		}
	}
	if (typeof impCssRec[c] != "undefined") {
		return;
	}
	var d = document.createElement("link");
	d.rel = "stylesheet";
	d.rev = "stylesheet";
	d.type = "text/css";
	d.media = "screen";
	d.href = c;
	document.getElementsByTagName("head")[0].appendChild(d);
	impCssRec[c] = true;
}
function $(b) {
	return document.getElementById(b);
}
function $3(b) {
	return document.getElementById(b);
}
function formReset(c, d) {
	$(c).reset();
	if (typeof (d) != "undefined") {
		try{
			$(d).focus();
		}catch(err){
		}
	}
}
function trim(b) {
	return b.replace(/^\s+/, "").replace(/\s+$/, "");
}
function isNumber(d, c) {
	if (c == true && d.length == 0) {
		return true;
	}
	return /^[-+]?\d+$/.test(d);
}
function isWhitespace(b) {
	return !(/\S/.test(b));
}
function isDigit(d, c) {
	if (c && d.length == 0) {
		return true;
	}
	if (!c && d == "") {
		return false;
	}
	return /^\d+$/.test(d);
}
function isFloat(e, g) {
	if (g == true && e.length == 0) {
		return true;
	}
	var h = "^(([+]?|[-]?)[0-9]+([.][0-9]+)?)?$";
	var f = e.match(h);
	if (f == null) {
		return false;
	} else {
		return true;
	}
}
function numChk(b) {
	if (_isIE) {
		if (((event.keyCode > 47) && (event.keyCode < 58)) || (event.keyCode == 8)) {
			return true;
		} else {
			return false;
		}
	} else {
		if (((b.which > 47) && (b.which < 58)) || (b.which == 8)) {
			return true;
		} else {
			return false;
		}
	}
}
function formatDateYMD(g) {
	var f = g.getFullYear();
	var h = g.getMonth() + 1;
	h = (h < 10) ? "0" + h : h;
	var d = g.getDate();
	d = (d < 10) ? "0" + d : d;
	return (f + "-" + h + "-" + d);
}
var cufmsW, haveLoadWin;
function initCufmsW() {
	if (typeof (haveLoadWin) == "undefined") {
		loadCSS(conextPath + "/dhtmlx/windows/codebase/dhtmlxwindows.css");
		loadCSS(conextPath + "/dhtmlx/windows/codebase/skins/dhtmlxwindows_dhx_blue.css");
		importJs(conextPath + "/dhtmlx/windows/codebase/dhtmlxwindows.js");
	}
	cufmsW = new dhtmlXWindows();
	cufmsW.enableAutoViewport(true);
	cufmsW.setViewport(50, 50, 100, 200);
	cufmsW.vp.style.border = "#909090 0px solid";
	cufmsW.setImagePath(conextPath + "/dhtmlx/windows/codebase/imgs/");
	return cufmsW;
}
function initW_ch(o, q, k, h, p, m, n, j) {
	if ((typeof o != "undefined") && !o.isHidden()) {
	} else {
		if ((typeof o != "undefined") && o.isHidden()) {
			if (q != "" && $(q) != null && $(q).className == "gridbox_light" && h == 300) {
			} else {
				o.setDimension(h, p);
			}
			o.show();
		} else {
			if (typeof cufmsW == "undefined") {
				cufmsW = initCufmsW();
			}
			if (typeof m != "undefined" && m != "") {
				o = cufmsW.createWindow(m, 10, 10, h, p);
			} else {
				o = cufmsW.createWindow(q, 10, 10, h, p);
			}
			if (q != null && q != "") {
				o.attachObject(q, false);
			}
			hiddenB(o, k);
			if (typeof (n) != "undefined") {
				o.setText(n);
			}
		}
	}
	if (typeof j == "undefined") {
		o.centerOnScreen();
	}
	o.setModal(k);
	o.bringToTop();
	return o;
}
function hiddenB(d, c) {
	d.button("minmax1").hide();
	d.button("minmax2").hide();
	d.button("park").hide();
	d.denyResize();
	d.progressOn();
	d.center();
	if (c) {
		d.button("close").attachEvent("onClick", function () {
			if (typeof mypmCalendar_ch != "undefined") {
				mypmCalendar_ch.hide();
			}
			d.hide();
			d.setModal(false);
		});
	} else {
		d.button("close").attachEvent("onClick", function () {
			if (typeof mypmCalendar_ch != "undefined") {
				mypmCalendar_ch.hide();
			}
			d.hide();
		});
	}
}
function initDhtmlxCalendar(b) {
	if (typeof (dhtmlxCalendarObject) == "undefined") {
		if (typeof (b) == "undefined") {
			loadCSS(conextPath + "/dhtmlx/calendar/codebase/dhtmlxcalendar.css");
			importJs(conextPath + "/dhtmlx/calendar/codebase/dhtmlxcalendar.js");
		}
	}
}
var messageW_ch, warningMessageW_ch, deleteMessageW_ch;
function showMessage(d, f, e) {
	messageW_ch = initW_ch(messageW_ch, "messageDiv", d, 300, 100);
	messageW_ch.setText(f);
	messageW_ch.bringToTop();
	$("messageText").innerHTML = e;
}
function showWarningMessage(d, f, e) {
	warningMessageW_ch = initW_ch(warningMessageW_ch, "warningMessageDiv", d, 300, 100);
	warningMessageW_ch.setText(f);
	warningMessageW_ch.bringToTop();
	$("warningMessageText").innerHTML = e;
}
function showDeleteMessage(e, i, g, h) {
	deleteMessageW_ch = initW_ch(deleteMessageW_ch, "deleteMessageDiv", e, 300, 123);
	deleteMessageW_ch.setText(i);
	deleteMessageW_ch.bringToTop();
	$("deleteMessageText").innerHTML = g;
	try {
		if (typeof (h) != "undefined") {
			$("customData").value = h;
		}
	}
	catch (j) {
	}
}
function importRegJs() {
	importJs(conextPath + "/jsp/userManager/regCAC.js");
}
function importLoginJs() {
	if(navigator.userAgent.indexOf("Chrome")>0)
		importJs(conextPath + "/jsp/userManager/login4Ce.js");
	else
	   importJs(conextPath + "/jsp/userManager/login.js");
	loadCSS(conextPath + "/dhtmlx/windows/codebase/dhtmlxwindows.css");
	loadCSS(conextPath + "/dhtmlx/windows/codebase/skins/dhtmlxwindows_dhx_blue.css");
	importJs(conextPath + "/dhtmlx/windows/codebase/dhtmlxwindows.js");
	importJs(conextPath + "/dhtmlx/grid/codebase/dhtmlxgrid.js");
}
function importKeyCtrlJs() {
	importJs(conextPath + "/js/keyCtrl.js");
}
var clientWidth = 0, initGridHight = 480, scrollWidth = 17, nameWidth;
clientWidth = window.screen.width - 24;
if (clientWidth > 1256) {
	clientWidth = 1256;
}
var gridWidth = clientWidth;
var toolBarWidth = clientWidth;
if (_isIE) {
	scrollWidth = 19;
} else {
	toolBarWidth = clientWidth + 2;
}
function ininPage(f, g, e) {
	var h = $(f).parentNode.parentNode.parentNode;
	h.style.width = "100%";
	$(f).style.width = toolBarWidth - 12;
	if (g != "") {
		$(g).style.width = gridWidth - 12;
		$(g).style.boderBottom = "0";
	}
	nameWidth = gridWidth - e - scrollWidth;
	if (clientWidth <= 1230) {
		nameWidth = "*";
	} else {
		if (nameWidth < 70) {
			nameWidth = 70;
		} else {
			nameWidth = "*";
		}
	}
}
function Browser() {
	var h = document, k = navigator, i = this, m = screen;
	var b = k.appName;
	var j = k.userAgent.toLowerCase();
	i.name = "Unknow";
	i.safari = j.indexOf("safari") > -1;
	i.opera = j.indexOf("opera") > -1;
	i.firefox = !i.safari && j.indexOf("firefox") > -1;
	i.ns = !i.firefox && !i.opera && !i.safari && (b == "Netscape");
	i.ie = !i.opera && (b == "Microsoft Internet Explorer");
	i.name = (i.ie ? "IE" : (i.firefox ? "Firefox" : (i.ns ? "Netscape" : (i.opera ? "Opera" : (i.safari ? "Safari" : "Unknow")))));
}
function JShortCut() {
	var e;
	var g = {};
	var f = new Browser();
	this.bind = function (a, b, c) {
		g[a] = b;
		if (c === false) {
			g[a].doSysShortCut = false;
		}
	};
	this.unBind = function (a) {
		delete g[a];
	};
	this.listen = function (a) {
		if (typeof a == "string") {
			a = document.getElementById(a);
		}
		if (a.addEventListener) {
			a.addEventListener("keydown", h, false);
			a.addEventListener("keypress", h, false);
		} else {
			if (a.attachEvent) {
				a.attachEvent("onkeydown", h);
				a.attachEvent("onkeypress", h);
			} else {
				a.onkeydown = element.onkeypress = h;
			}
		}
	};
	var h = function (o) {
		o = o || event;
		if (o.type == "keydown") {
			var c = o.keyCode;
			if (c == 16 || c == 17 || c == 18) {
				return;
			}
			keyname = JShortCut.KEYS[c];
			var n = "";
			if (!keyname && (o.altKey || o.ctrlKey)) {
				keyname = Keymap.keyCodeToPrintableChar[c];
			}
			if (keyname) {
				if (o.altKey) {
					n += "alt_";
				}
				if (o.ctrlKey) {
					n += "ctrl_";
				}
				if (o.shiftKey) {
					n += "shift_";
				}
			} else {
				return;
			}
		} else {
			if (o.type == "keypress") {
				if (o.altKey || o.ctrlKey) {
					return;
				}
				if (o.charCode != undefined && o.charCode == 0) {
					return;
				}
				var c = o.charCode || o.keyCode;
				keyname = String.fromCharCode(c);
				var d = keyname.toLowerCase();
				if (keyname != d) {
					keyname = d;
					n = "shift_";
				}
			}
		}
		var b = n + keyname;
		var a = o.srcElement || o.target;
		var m = g[b];
		if (typeof m == "function") {
			m(a, b, o);
			if (m.doSysShortCut === false) {
				switch (f.name) {
				  case "IE":
					o.returnValue = false;
					o.keyCode = 0;
					break;
				  case "Firefox":
					o.preventDefault();
					break;
				  case "Opera":
					o.returnValue = false;
					o.preventDefault();
					break;
				  case "Safari":
					o.preventDefault();
					o.returnValue = false;
				}
			}
		}
	};
}
JShortCut.KEYS = {48:"0", 49:"1", 50:"2", 51:"3", 52:"4", 53:"5", 54:"6", 55:"7", 56:"8", 57:"9", 59:";", 61:"=", 65:"a", 66:"b", 67:"c", 68:"d", 69:"e", 70:"f", 71:"g", 72:"h", 73:"i", 74:"j", 75:"k", 76:"l", 77:"m", 78:"n", 79:"o", 80:"p", 81:"q", 82:"r", 83:"s", 84:"t", 85:"u", 86:"v", 87:"w", 88:"x", 89:"y", 90:"z", 107:"+", 109:"-", 110:".", 188:",", 190:".", 191:"/", 192:"'", 219:"[", 220:"\\", 221:"]", 222:"\"", 8:"backspace", 9:"tab", 13:"return", 19:"pause", 27:"escape", 32:"space", 33:"pageup", 34:"pagedown", 35:"end", 36:"home", 37:"left", 38:"up", 39:"right", 40:"down", 44:"printscreen", 45:"insert", 46:"delete", 112:"f1", 113:"f2", 114:"f3", 115:"f4", 116:"f5", 117:"f6", 118:"f7", 119:"f8", 120:"f9", 121:"f10", 122:"f11", 123:"f12", 144:"numlock", 145:"scrolllock"};
function doSys(f, d, e) {
	document.title = "MYPM\u9879\u76ee\u7ba1\u7406\u53ca\u6d4b\u8bd5\u5e73\u53f0";
	return;
}
var sc = new JShortCut();
sc.bind("ctrl_a", doSys, false);
sc.bind("ctrl_r", doSys, false);
sc.bind("ctrl_s", doSys, false);
sc.bind("ctrl_p", doSys, false);
sc.bind("ctrl_l", doSys, false);
sc.bind("ctrl_f5", doSys, false);
sc.bind("ctrl_shift_r", doSys, false);
sc.bind("f1", doSys, false);
sc.bind("f4", doSys, false);
sc.bind("f5", doSys, false);
sc.listen(document);
var pbW_ch, popContextMenuFlg = 1;
if (typeof (custContextMenuFlg) != "undefined") {
	popContextMenuFlg = 0;
}

function fixCss(h) {
	var g = $3(h);
	var e = 1;
	for (var f = g.rows.length - 1; f >= 0; f--) {
		if (g.rows[f].style.display == "") {
			if ((e % 2) == 0) {
				g.rows[f].className = "ev_mypm";
			} else {
				g.rows[f].className = "odd_mypm";
			}
			e++;
		}
	}
}

var iframe;

function selectInit(u, r, o, t, m) {
	$3(u).options.length = 0;
	if (o != null) {
		$3(u).options.add(new Option(o, ""));
	}
	if (r != "") {
		var i = r.split("^");
		var q, n, p;
		for (var s = 0; s < i.length; s++) {
			p = i[s].split(";");
			q = p[1];
			n = p[0];
			if (n != "") {
				$3(u).options.add(new Option(q, n));
				if (o != null) {
					$3(u).options[s + 1].title = q;
				} else {
					$3(u).options[s].title = q;
				}
			}
		}
	} else {
		if (typeof (t) != "undefined") {
			$3(t).innerHTML = m;
		}
	}
}

function resetWinHeight(m, q, v, o, t, p, s) {
	var n = $3(q).offsetHeight;
	if (n < o) {
		m.setDimension(v, n + 22);
	} else {
		m.setDimension(v, o);
	}
	if (typeof t != "undefined") {
		var u = $(t).getBoundingClientRect();
		var w = 0, r = 0;
		if (typeof p != "undefined") {
			w = p;
		}
		if (typeof s != "undefined") {
			r = s;
		}
		m.setPosition(u.right + w, u.top + r);
	}
}
try {
	if (screen.width <= 1024) {
		parent.document.getElementById("mypmMain").scrolling = "auto";
	} else {
		parent.document.getElementById("mypmMain").scrolling = "no";
	}
}
catch (err) {
}
	document.oncontextmenu = function (b) {
		return false;
	};
var currDocField, pmDocSelW_ch, currDocLock, currDocCallback, mypmDocFiledId;

function includeSpeChar(f) {
	var g = "~ ` ! # $ % ^ & * ( ) [ ] { } ; ' : \" , \uff0c < >";
	var h = g.split(" ");
	if (typeof (f) == "undefined" || isWhitespace(f)) {
		return false;
	}
	for (var e = 0; e < h.length; e++) {
		if (f.indexOf(h[e]) >= 0) {
			return true;
		}
	}
	return false;
}
function checkHasChi(b) {
	re = /[\u4E00-\u9FA0]/;
	if (re.test(b)) {
		return 1;
	} else {
		return 0;
	}
}
function checkIsOverLong(f, d) {
	var e = 0;
	for (l = 0; l < f.length; l++) {
		if (checkHasChi(f.charAt(l)) == 1) {
			e += 2;
		} else {
			e += 1;
		}
		if (e > parseInt(d)) {
			return true;
		}
	}
	return false;
}

function initWch(o, q, k, h, p, m, n, j) {
	if ((typeof o != "undefined") && !o.isHidden()) {
	} else {
		if ((typeof o != "undefined") && o.isHidden()) {
			o.show();
		} else {
			if (typeof cufmsW == "undefined") {
				cufmsW = initCufmsW();
			}
			if (typeof m != "undefined" && m != "") {
				o = cufmsW.createWindow(m, 10, 10, h, p);
			} else {
				o = cufmsW.createWindow(q, 10, 10, h, p);
			}
			if (q != null && q != "") {
				o.attachObject(q, false);
			}
			hiddenB(o, k);
			if (typeof (n) != "undefined") {
				o.setText(n);
			}
		}
	}
	if (typeof j == "undefined") {
		o.centerOnScreen();
	}
	o.setModal(k);
	o.bringToTop();
	return o;
}

